package com.example.service.impl;

import com.example.domain.Annualoutput;
import com.example.mapper.AnnualoutputMapper;
import com.example.service.AnnualoutputService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AnnualoutputServiceImpl implements AnnualoutputService {

    @Autowired
    private AnnualoutputMapper annualoutputMapper;

    @Override
    public List<Annualoutput> getAll() {
        return annualoutputMapper.getAll();
    }

    @Override
    public Annualoutput getById(Integer annualoutputId) {
        return annualoutputMapper.getById(annualoutputId);
    }

    @Override
    public boolean add(Annualoutput annualoutput) {
        return annualoutputMapper.add(annualoutput);
    }

    @Override
    public boolean update(Annualoutput annualoutput) {
        return annualoutputMapper.update(annualoutput);
    }

    @Override
    public boolean delete(Integer annualoutputId) {
        return annualoutputMapper.delete(annualoutputId);
    }
}
